package domain;

public class TimeEntry {

	private Long id;
	private Integer timeSpent;
	private String note;
	private Workday workday;
	private Task task;
	public TimeEntry() {
		super();
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Integer getTimeSpent() {
		return timeSpent;
	}
	public void setTimeSpent(Integer timeSpent) {
		this.timeSpent = timeSpent;
	}
	public String getNote() {
		return note;
	}
	public void setNote(String note) {
		this.note = note;
	}
	public Workday getWorkday() {
		return workday;
	}
	public void setWorkday(Workday workday) {
		this.workday = workday;
	}
	public Task getTask() {
		return task;
	}
	public void setTask(Task task) {
		this.task = task;
	}
	@Override
	public String toString() {
		return "Cas: " + getTimeSpent().toString() + " Uloha: " + getTask().toString();
	}	
}
